.invite.mtop15.border.border-arc
	.bbottom.padbottom20
		img(src='img/man.jpg', height=50, width=50).pull-left.mbottom15
		.content
			.mleft20.font16.b.rc 尊敬的{{session.display_name}} , 欢迎登录广发网!
			.mleft20.mtop10.font14
				广发网现已升级 "广发通" 统一登录系统 , 只需十秒钟简单注册并绑定广发通账号，即可享受更多的会员服务和产品优惠。

	form.newlogin.mtop15(name='linkform', 
		ng-controller='App.LinkCtrl', 
		ng-submit='submit()')

		.field
			label
				.user-icon.mright5
				span(for='username', ng-hide='username.length') 广发通用户名
			input(type='text', id='username', name='user_id', ng-model='username', required).txtbox
		.field
			label
				.pwd-icon.mright10
				span(for='password', ng-hide='password.length') 登录密码
			input(type='password', id='password', name='password', ng-model='password', required).txtbox
		.field(ng-show='linkType == "register"')
			label
				.pwd-icon.mright10
				span(for='password_1', ng-hide='password_1.length') 确认登录密码
			input(type='password', id='password_1', name='password', ng-model='password_1').txtbox
			.nc.msg(ng-show='password_1 && password_1 != password') 密码不匹配
		.field(ng-show='linkType == "register"')
			label
				.pwd-icon.mright5
				span(for='mobile', ng-hide='mobile.length') 手机号码
			input(type='text', id='mobile', name='mobile', ng-model='mobile', readonly).txtbox

		.mtop20
			input#linkTypeRegister(type='radio', name='linkType', checked, ng-click='changeLinkType("register")')
			label.mleft5.mright20(for='linkTypeRegister') 我没有广发通
			input#linkTypeBind(type='radio', name='linkType', ng-click='changeLinkType("bind")')
			label.mleft5(for='linkTypeBind') 我已有广发通
		.mtop20
			a(href='/portal/index').blur-btn.pull-right &nbsp&nbsp暂时不注册&nbsp&nbsp
			input(ng-show='linkType == "register"', type='submit', ng-disabled='!linkform.$valid || password_1 != password', value='注册并绑定').blur-btn
			input(ng-show='linkType != "register"', type='submit', ng-disabled='!username || !password', value='绑定').blur-btn
		.nc.mtop10(ng-show='error') {{error}}

	.tip.boxbg
		.arrow
		.txt
			注册个性化的用户名作为登录名 , 从此登录更简单
			
	.tip.boxbg(style='top: 184px;_top: 179px;')
		.arrow
		.txt
			登录密码用于登录 , 交易密码用于交易 , 分级使用更安全



